package my.avoskagae.service.abstr;

import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

import my.avoskagae.model.entity.Product;

public interface AvoskaServiceAsync {

	public void getProducts(AsyncCallback<List<Product>> callback);
	
	public void createProduct(String name, AsyncCallback<Product> callback);		
	
	public void renameProduct(Product product, String newName, AsyncCallback<Product> callback);

	public void removeProduct(Product product, AsyncCallback<Boolean> callback);

	public void switchNeedPurchase(Product product, Boolean newNeedPurchase, AsyncCallback<Product> callback);

}
